package org.linlinjava.litemall.admin.web2.order.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.core.util.DateTimeUtil;
import org.linlinjava.litemall.db.domain.TOrder;

/**
 * 已关闭
 */
@ApiModel
public class OResp3 extends OResp {

    @ApiModelProperty("收货时间")
    private String pickupTime;
    @ApiModelProperty("操作者")
    private String operator;

    @Override
    protected void push0(TOrder order) {
        if (order.getPickupTime() != null)
            this.pickupTime = order.getPickupTime().format(DateTimeUtil.format);
        this.operator = order.getOperator();
    }

    public String getPickupTime() {
        return pickupTime;
    }

    public void setPickupTime(String pickupTime) {
        this.pickupTime = pickupTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
}
